package com.java.comprehensive.other.sort;

/**
 * @Author: Dgg
 * @Date: 2021/10/10 20:51
 */
public class SortUtil {
	public static boolean greater(Comparable v, Comparable w) {
		return v.compareTo(w) > 0;
	}

	public static void exch(Comparable[] a, int i, int j) {
		Comparable temp;
		temp = a[i];
		a[i] = a[j];
		a[j] = temp;
	}
}
